package com.example.ujsfish.model;



import java.util.ArrayList;

public class Coordinate {

    public ArrayList<MyPoint> coordinateList = new ArrayList<>();

    private volatile static Coordinate instance1 = null;
    private Coordinate(){}


    public ArrayList<MyPoint> getCoordinateList() {
        return coordinateList;
    }

    public void setCoordinateList(ArrayList<MyPoint> coordinateList) {
        this.coordinateList = coordinateList;
    }

    public static Coordinate getInstance(){
        if (instance1 == null){
            synchronized (Coordinate.class){
                instance1 = new Coordinate();
            }
        }
        return instance1;
    }





}
